import http from './http'

export interface QACaptcha {
  token: string
  question: string
  ttl: number
}

export async function fetchQACaptcha() {
  const resp = await http.get<{ code: number; message: string; data: QACaptcha }>(`/captcha/qa`)
  return resp.data.data
}


